﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;


namespace EventStandsApp
{
    public class UI
    {
        //fields
        Double total;
        Double deposit;Double initialdeposit;
        int numericVal;
        Button btnReturn;
        Button btnProcessOrder;
        Button btnClearOrder;

        //constructor
        public UI(Double total, Double deposit, Double initialdeposit, int numericVal, Button btnReturn, Button btnProcessOrder, Button btnClearOrder)
        {
            this.total = total;
            this.deposit = deposit;
            this.initialdeposit = initialdeposit;
            this.numericVal = numericVal;
            this.btnReturn = btnReturn;
            this.btnProcessOrder = btnProcessOrder;
            this.btnClearOrder = btnClearOrder;
        }

        //sets total, deposit and initialdeposit to zero and numericVal to one; 
        //makes three buttons not visible: for returning an item, for processing order and for clearing the order
        public void initialize()
        {
            total = 0;
            deposit = 0;
            initialdeposit = 0;
            numericVal = 1;
            btnReturn.Visible = false;
            btnProcessOrder.Visible = false;
            btnClearOrder.Visible = false;
        }

        //sets total, deposit and initialdeposit to zero and numericVal to one;
        public void btnEnterIdInit()
        {
            total = 0;
            deposit = 0;
            initialdeposit = 0;
            numericVal = 1;
        }

        //makes three buttons visible: for returning an item, for processing order and for clearing the order
        public void makeButtonsVisible()
        {
            btnReturn.Visible = true;
            btnProcessOrder.Visible = true;
            btnClearOrder.Visible = true;
        }
    }
}
